package com.bl.student.dao.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.math.BigDecimal;
import java.util.Date;
/**
 * Created by yujingyi on 2018/3/17.
 */
@Entity
@Data
@Table(name = "task")
@ApiModel(value = "任务", description = "任务表")
@DynamicInsert
@DynamicUpdate

public class TaskEntity {

    @Id
    @ApiModelProperty(value = "id")
    private String id;

    @ApiModelProperty(value = "甲方id")
    @Column(name = "partya_id")
    private String partyaId;


    @ApiModelProperty(value = "乙方id")
    @Column(name = "partyb_id")
    private String partybId;

    @ApiModelProperty(value = "状态 PRE 发布 ONLINE 正在进行 FINISH 已完成 FAIL 失败")
    private String status;

    @ApiModelProperty(value = "三级分类")
    private String classc;

    @ApiModelProperty(value = "二级分类")
    private String classb;

    @ApiModelProperty(value = "一级分类")
    private String classa;

    @ApiModelProperty(value = "一级分类")
    private String online;

    @ApiModelProperty(value = "甲方性别 ''男'', ''女'")
    private String sex;

    @ApiModelProperty(value = "价格区间 ''200-400'', ''400-600'")
    private String price;

    @ApiModelProperty(value = "'语言 ''英语'', ''阿拉伯语'', ''日语''...")
    private String language;

    @ApiModelProperty(value = "年级")
    private String grade;

    @ApiModelProperty(value = "乙方学校 ''985'', ''211'', ''国外名校''")
    private String college;

    @ApiModelProperty(value = "乙方学历 ''本科生'', ''硕士及博士'', ''专职教师''")
    private String type;

    @ApiModelProperty(value = "老师星级")
    private String star;

    @ApiModelProperty(value = "教授地点 ''城市'', ''地区''")
    private String location;

    @ApiModelProperty(value = "时间区间 ''今日'', ''近几日'', ''具体日期时间'")
    private String time;

    @ApiModelProperty(value = "字数")
    private String count;

    @ApiModelProperty(value = "学生 or 外教")
    private String role;

    @ApiModelProperty(value = "中文水平")
    private String chinese;

    @ApiModelProperty(value = "中文水平")
    private String env;

    @ApiModelProperty(value = "标题")
    private String title;

    @ApiModelProperty(value = "中文水平")
    private String detail;

    @ApiModelProperty(value = "乙方性别")
    @Column(name = "t_sex")
    private String tSex;

    @ApiModelProperty(value = "创建时间")
    @Column(name = "create_time")
    private Date createTime;

    @ApiModelProperty(value = "修改时间")
    @Column(name = "update_time")
    private Date updateTime;

    private double longitude;

    private double latitude;

    private String address;

    private String bcomment;

    @ApiModelProperty(value = "群招：工作时间 不需要删选")
    @Column(name = "ad_work_time")
    private String adWorkTime;

    @ApiModelProperty(value = "群招：工作时长 不需要删选")
    @Column(name = "ad_work_duration")
    private String adWorkDuration;

    @ApiModelProperty(value = "群招：需要人数 不需要删选")
    @Column(name = "ad_need_num")
    private String adNeedNum;

    @ApiModelProperty(value = "群招：每人每小时费用 或 每人每次费用 不需要删选")
    @Column(name = "ad_cost")
    private String adCost;

    @ApiModelProperty(value = "群招：每人每小时费用 或 每人每次费用 不需要删选")
    @Column(name = "ad_condition")
    private String adCondition;

    @ApiModelProperty(value = "代买：食品 饮品 药类 其他 需要筛选")
    @Column(name = "buy_type")
    private String buyType;

    @ApiModelProperty(value = "代买：物品名 不需要筛选 ")
    @Column(name = "buy_name")
    private String buyName;

    @ApiModelProperty(value = "代买：代码时间 不需筛选 ")
    @Column(name = "buy_time")
    private String buyTime;

    @ApiModelProperty(value = "代买：费用 不需筛选 ")
    @Column(name = "buy_money")
    private double buyMoney;

    @ApiModelProperty(value = "代买：送去位置 不需筛选 ")
    @Column(name = "buy_address")
    private String buyAddress;

    @ApiModelProperty(value = "跑腿：跑腿类型  需要筛选 ")
    @Column(name = "run_type")
    private String runType;

    @ApiModelProperty(value = "跑腿：时间 不需筛选 ")
    @Column(name = "run_time")
    private String runTime;

    @ApiModelProperty(value = "跑腿：时间 不需筛选 ")
    @Column(name = "run_send_address")
    private String runSendAddress;

    @ApiModelProperty(value = "跑腿：费用 不需筛选")
    @Column(name = "run_money")
    private double runMoney;

    @ApiModelProperty(value = "跑腿：重量 不需筛选")
    @Column(name = "run_weight")
    private double runWeight;

    @ApiModelProperty(value = "跑腿：接受地址 不需筛选 ")
    @Column(name = "run_receive_address")
    private String runReceiveAddress;

    @ApiModelProperty(value = "乙方申请个数 ")
    @Column(name = "partyb_count")
    private int partybCount;

    @ApiModelProperty(value = "乙方已完成人数 ")
    @Column(name = "now_count")
    private int nowCount;

    @ApiModelProperty(value = "群招结账类型：每人每次 每人每小时 ")
    @Column(name = "fee_type")
    private String feeType;

    private int deadline;
}
